package org.csmz.xg2333;

import java.util.ArrayList;
import java.util.Iterator;

public class Example05 {
    public static void main(String[] args){
        ArrayList list = new ArrayList();
        list.add("Java");
        list.add("python");
        list.add("c++");
        Iterator iterator = list.iterator();
        System.out.println("科目列表如下：");
        for (Object member:list){
        System.out.println(member);
        }
    }
}
